Ext.define('Admin.store.role.RoleGroupStore', {
    extend: 'Ext.data.Store',
    alias: 'store.roleGroupStore',
    // model: 'Admin.model.role.Role',

    pageSize: 20,

    proxy: {
        type: 'ajax',
        url: 'role/searchAllUser',
        reader: new Ext.data.JsonReader({
            type: 'json',
            rootProperty: 'content',
            totalProperty: 'totalElements'
        }),
        simpleSortMode: true
    },

    remoteSort: true,
    autoLoad: true,

    sorters: [{
        property: 'id',
        direction: 'ASC'
    }]

});